/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: 
 * License Type: Evaluation
 */
package orm;

import java.io.Serializable;
public class Tan_anotacion implements Serializable {
	public Tan_anotacion() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TAN_ANOTACION_SU_ID_SUBSECTOR) {
			this.su_id_subsector = (orm.Tan_subsector) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TAN_ANOTACION_TA_ID_TIPOANOTACION) {
			this.ta_id_tipoanotacion = (orm.Tan_tipoanotacion) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TAN_ANOTACION_AN_ID_ANOTADOR) {
			this.an_id_anotador = (orm.Tan_anotador) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TAN_ANOTACION_AL_ID_ALUMNO) {
			this.al_id_alumno = (orm.Tan_alumno) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int an_id_anotacion;
	
	private String an_fecha;
	
	private String an_descripcion;
	
	private orm.Tan_subsector su_id_subsector;
	
	private orm.Tan_tipoanotacion ta_id_tipoanotacion;
	
	private orm.Tan_anotador an_id_anotador;
	
	private orm.Tan_alumno al_id_alumno;
	
	private void setAn_id_anotacion(int value) {
		this.an_id_anotacion = value;
	}
	
	public int getAn_id_anotacion() {
		return an_id_anotacion;
	}
	
	public int getORMID() {
		return getAn_id_anotacion();
	}
	
	public void setAn_fecha(String value) {
		this.an_fecha = value;
	}
	
	public String getAn_fecha() {
		return an_fecha;
	}
	
	public void setAn_descripcion(String value) {
		this.an_descripcion = value;
	}
	
	public String getAn_descripcion() {
		return an_descripcion;
	}
	
	public void setSu_id_subsector(orm.Tan_subsector value) {
		if (su_id_subsector != null) {
			su_id_subsector.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_subsector getSu_id_subsector() {
		return su_id_subsector;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Su_id_subsector(orm.Tan_subsector value) {
		this.su_id_subsector = value;
	}
	
	private orm.Tan_subsector getORM_Su_id_subsector() {
		return su_id_subsector;
	}
	
	public void setTa_id_tipoanotacion(orm.Tan_tipoanotacion value) {
		if (ta_id_tipoanotacion != null) {
			ta_id_tipoanotacion.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_tipoanotacion getTa_id_tipoanotacion() {
		return ta_id_tipoanotacion;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Ta_id_tipoanotacion(orm.Tan_tipoanotacion value) {
		this.ta_id_tipoanotacion = value;
	}
	
	private orm.Tan_tipoanotacion getORM_Ta_id_tipoanotacion() {
		return ta_id_tipoanotacion;
	}
	
	public void setAn_id_anotador(orm.Tan_anotador value) {
		if (an_id_anotador != null) {
			an_id_anotador.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_anotador getAn_id_anotador() {
		return an_id_anotador;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_An_id_anotador(orm.Tan_anotador value) {
		this.an_id_anotador = value;
	}
	
	private orm.Tan_anotador getORM_An_id_anotador() {
		return an_id_anotador;
	}
	
	public void setAl_id_alumno(orm.Tan_alumno value) {
		if (al_id_alumno != null) {
			al_id_alumno.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_alumno getAl_id_alumno() {
		return al_id_alumno;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Al_id_alumno(orm.Tan_alumno value) {
		this.al_id_alumno = value;
	}
	
	private orm.Tan_alumno getORM_Al_id_alumno() {
		return al_id_alumno;
	}
	
	public String toString() {
		return String.valueOf(getAn_id_anotacion());
	}
	
}
